﻿@{
    Layout = "~/Views/Shared/_HomeLayout.cshtml";
}
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.lazyload.js")"></script>
<script type="text/javascript" language="javascript">
    $(function () {
        $(".switch_textarea").lazyload();
    });
</script>
<!-- h2 stays for breadcrumbs -->
<div style="width: 225px; float: left">
    <a href="@Url.Action("index", "home", null)">
        <img src="@Url.Content("~/Content/img/logo.gif")" alt="开心促销网" /></a>
    @Html.Partial("_ProductMENU")
    <div class="products">
        <div class="p_right">
            @if (ViewData["LeftSaildProducts"] != null)
            {
                <!--相关产品开始-->
                <div class="product_box xiangguan">
                    <div class="header">
                        <span>同类产品</span>@Html.ActionLink("更多>>", "ProductList", "Home", new { categoryId = ViewData["categoryId"], typeId = ViewData["type"] != null ? ViewData["type"].ToString() : "1" }, null)</div>
                    @Html.Partial("_BoutiqueArea", ViewData["LeftSaildProducts"])
                </div>
                <!--相关产品结束-->
            }
            @if (ViewData["TuijianProducts"] != null)
            {
                <!--推荐产品开始-->
                <div class="product_box xiangguan">
                    <div class="header">
                        <span>推荐产品</span><a href="#">更多>></a></div>
                    @Html.Partial("_BoutiqueArea", ViewData["TuijianProducts"])
                </div>
                <!--推荐产品结束-->
            }
            @if (ViewData["DaoGouPop"] != null)
            {
                <!--导购排行-->
                <div class="product_box hotlist onleft">
                    <div class="header">
                        <span>导购排行</span></div>
                    @Html.Partial("_DaoGouPop", ViewData["DaoGouPop"])
                </div>
                <!--导购排行-->
            }
        </div>
    </div>
</div>
<div class="right_content">
    @Html.Partial("_SeachHeader", ViewData["type"] != null ? ViewData["type"].ToString() : "1")
    @RenderBody()
</div>
